import os
import sys

import qdarkstyle
from qt_material import apply_stylesheet

from controllers.HomeController import *

class main:
    def __init__(self):
        app = QtWidgets.QApplication(sys.argv)

        HomeController()

        # setup stylesheet
        apply_stylesheet(app, theme='dark_teal.xml')

        # # setup stylesheet
        # app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5())
        # # or in new API
        # app.setStyleSheet(qdarkstyle.load_stylesheet(qt_api='pyqt5'))
        os._exit(app.exec_())